Systems and methods for current control of power conversion systems

ABSTRACT

System and method for regulating an output current of a power conversion system. An example system controller for regulating an output current of a power conversion system includes a driving component, a demagnetization detector, a current-regulation component, and a signal processing component. The driving component is configured to output a drive signal to a switch in order to affect a primary current flowing through a primary winding of the power conversion system. The demagnetization detector is configured to receive a feedback signal associated with an output voltage of the power conversion system and generate a detection signal based on at least information associated with the feedback signal. The current-regulation component is configured to receive the drive signal, the detection signal and a current-sensing signal and output a current-regulation signal based on at least information associated with the drive signal, the detection signal, and the current sensing signal.

1. CROSS-REFERENCES TO RELATED APPLICATIONS

This application claims priority to Chinese Patent Application No. 201210258359.X, filed Jul. 24, 2012, commonly assigned, incorporated by reference herein for all purposes.

2. BACKGROUND OF THE INVENTION

The present invention is directed to integrated circuits. More particularly, the invention provides systems and methods for current control. Merely by way of example, the invention has been applied to constant current control of power conversion systems. But it would be recognized that the invention has a much broader range of applicability.

FIG. 1 is a simplified diagram showing a conventional flyback power conversion system. The power conversion system 100 includes a primary winding 110, a secondary winding 112, an auxiliary winding 114, a power switch 120, a current sensing resistor 130, two rectifying diodes 160 and 168, two capacitors 162 and 170, and two resistors 164 and 166. For example, the power switch 120 is a bipolar transistor. In another example, the power switch 120 is a metal-oxide-semiconductor (MOS) transistor. In yet another example, the power conversion system 100 provides power to one or more light-emitting-diodes (LED) 199.

The auxiliary winding 114 can be used to extract information associated with an output voltage 150 on the secondary side so that the output voltage 150 can be regulated. When the power switch 120 is closed (e.g., on), the energy is stored in the transformer including the primary winding 110 and the secondary winding 112. When the power switch 120 is open (e.g., off), the stored energy is released to the output terminal. The voltage of the auxiliary winding 114 maps the output voltage 150. The auxiliary winding 114 and associated components (e.g., the resistors 164 and 166) generates a feedback signal 174 which can be determined based on the following equation:

$\begin{matrix} {V_{FB} = {\frac{R_{2}}{R_{1} + R_{2}} \times V_{aux}}} & \left( {{Equation}\mspace{14mu} 1} \right) \end{matrix}$

where V_(FB) represents the feedback signal 174, and V_(aux) represents a voltage 154 of the auxiliary winding 114. R₁ and R₂ represent the resistance values of the resistors 164 and 166 respectively.

For example, the switch 120 is associated with a switching period including an on-time period during which the switch 120 is closed (e.g., on) and an off-time period during which the switch 120 is open (e.g., off). As an example, in a continuous conduction mode (CCM), a next switching cycle starts prior to the completion of a demagnetization process associated with the transformer including the primary winding 110 and the secondary winding 112. Therefore, the duration of the demagnetization process (e.g., a demagnetization period) before the next switching cycle starts is approximately equal to the off-time period of the switch. For example, in a discontinuous conduction mode (DCM), a next switching cycle does not start until a time period after the demagnetization process has completed. In another example, in a critical conduction mode (CRM) (e.g., a quasi-resonant (QR) mode), a next switching cycle starts shortly after the completion of the demagnetization process.

FIG. 2 is a simplified conventional timing diagram for the flyback power conversion system 100 that operates in the continuous conduction mode (CCM). The waveform 202 represents the feedback signal 174 of the auxiliary winding 114 as a function of time, the waveform 204 represents a primary current 176 that flows through the primary winding 110 as a function of time, and the waveform 206 represents a secondary current 178 that flows through the secondary winding 112 as a function of time.

For example, a switching period, T_(s), starts at time t₀ and ends at time t₂, an on-time period, T_(on), starts at the time t₀ and ends at time t₁, and a demagnetization period, T_(dem), starts at the time t₁ and ends at the time t₂. In another example, an off-time period is approximately equal in duration to the demagnetization period. In yet another example, t₀≦t₁≦t₂.

During the on-time period T_(on), the power switch 120 is closed (e.g., on), and the primary current 176 flows through the primary winding 110 and increases from a magnitude 208 (e.g., at t₀) to a magnitude 210 (e.g., at t₁) as shown by the waveform 204. The secondary current 178 is at a low magnitude 212 (e.g., approximately zero) as shown by the waveform 206. The feedback signal 174 keeps at a magnitude 214 (e.g., as shown by the waveform 202).

At the beginning of the demagnetization period T_(off) (e.g., at t₁), the switch 120 is open (e.g., off), the primary current 176 is reduced from the magnitude 210 to a magnitude 216 (e.g., approximately zero) as shown by the waveform 204. The secondary current 178 increases from the magnitude 212 (e.g., approximately zero) to a magnitude 218 as shown by the waveform 206. The feedback signal 174 increases from the magnitude 214 to a magnitude 220 (e.g., as shown by the waveform 202).

During the demagnetization period T_(dem), the switch 120 remains open, the primary current 176 keeps at the magnitude 216 (e.g., approximately zero) as shown by the waveform 204. The secondary current 178 decreases from the magnitude 218 (e.g., at t₁) to a magnitude 222 (e.g., at t₂) as shown by the waveform 206. The feedback signal 174 decreases from the magnitude 220 to a magnitude 222 (e.g., as shown by the waveform 202).

At the end of the demagnetization period T_(dem) (e.g., at t₂), a next switching cycle starts before the demagnetization process is completed. The residual energy reflects back to the primary winding 110 and appears as an initial primary current 224 at the beginning of the next switching cycle.

As an example, the primary current 176 and the secondary current 178 satisfy the following equations:

I _(sec) _(—) ₁ =N×I _(pri) _(—) ₁  (Equation 2)

I _(sec) _(—) ₀ =N×I _(pri) _(—) ₀  (Equation 3)

where I_(sce) _(—) ₁ represents the secondary current 178 when the demagnetization period T_(dem) starts, and I_(sec) _(—) ₀ represents the secondary current 178 when the demagnetization period T_(dem) ends. Additionally, I_(pri) _(—) ₁ represents the primary current 176 when the on-time period T_(on) ends, I_(pri) _(—) ₀ represents the primary current 176 when the on-time period T_(on) starts, and N represents a turns ratio between the primary winding 110 and the secondary winding 112.

For example, the output current 152 is equal to an average of the secondary current 178 as shown by the following equation.

$\begin{matrix} {I_{out} = {\frac{1}{2} \times \frac{1}{T} \times {\int_{0}^{T}{\left( {I_{\sec \; \_ 1} + I_{\sec \; \_ 0}} \right) \times \frac{T_{dem}}{T_{s}}\ {t}}}}} & \left( {{Equation}\mspace{14mu} 4} \right) \end{matrix}$

where I_(out) represents an output current 152 on the secondary side, T represents an integration period, T_(s) represents a switching period, and T_(dem) represents the duration of the demagnetization process within the switching period.

Therefore, the output current 152 satisfies the following equation:

$\begin{matrix} {I_{out} = {\frac{N}{2} \times \frac{1}{T} \times {\int_{0}^{T}{\left( {I_{{pri}\; \_ 1} + I_{{pri}\; \_ 0}} \right) \times \frac{T_{dem}}{T_{s}}\ {t}}}}} & \left( {{Equation}\mspace{14mu} 5} \right) \end{matrix}$

As shown in FIG. 1, the resistor 130, in combination with other components, generates a current-sensing voltage signal 172 which is related to the primary current 176. For example, the output current 152 can be determined according to the following equations:

$\begin{matrix} {\mspace{79mu} {{I_{out} = {\frac{N}{2} \times \frac{1}{R_{s}} \times \frac{1}{T} \times {\int_{0}^{T}{\left( {V_{{cs}\; 1} + V_{{cs}\; 0}} \right) \times \frac{T_{dem}}{T_{s}}\ {t}}}}}\mspace{79mu} {or}}} & \left( {{Equation}\mspace{14mu} 6} \right) \\ {I_{out} = {\frac{N}{2} \times \frac{1}{R_{s}} \times \frac{1}{K} \times {\sum\limits_{1}^{K}{\left( {{V_{{cs}\; 1}(n)} + {V_{{cs}\; 0}(n)}} \right) \times \frac{T_{dem}(n)}{T_{s}(n)}}}}} & \left( {{Equation}\mspace{14mu} 7} \right) \end{matrix}$

where V_(cs0) represents the current-sensing voltage signal 172 when an on-time period starts during a switching cycle, V_(cs1) represents the current-sensing voltage signal 172 when the on-time period ends during the switching cycle, and R_(s) represents the resistance of the resistor 130. In addition, n corresponds to the n^(th) switching cycle, V_(cs0)(n) represents a magnitude of the current-sensing voltage signal 172 when an on-time period T_(on) starts in the n^(th) switching cycle, V_(cs1)(n) represents a magnitude of the current-sensing voltage signal 172 when the on-time period ends in the n^(th) switching cycle, and K represents the number of switching cycles that are included in the calculation. For example, K can be infinite; that is, the calculation of Equation 7 can include as many switching cycles as needed.

The output current 152 may thus be regulated based on information associated with the current-sensing voltage signal 172, the demagnetization process, and/or the switching period. However, the conventional current control schemes often suffer from low measurement accuracy.

Hence it is highly desirable to improve the techniques for current control of power conversion systems.

3. BRIEF SUMMARY OF THE INVENTION

The present invention is directed to integrated circuits. More particularly, the invention provides systems and methods for current control. Merely by way of example, the invention has been applied to constant current control of power conversion systems. But it would be recognized that the invention has a much broader range of applicability.

According to one embodiment, a system controller for regulating an output current of a power conversion system includes a driving component, a demagnetization detector, a current-regulation component and a signal processing component. The driving component is configured to output a drive signal to a switch in order to affect a primary current flowing through a primary winding of the power conversion system, the drive signal being associated with at least a switching period, the switching period including an on-time period and a demagnetization period. The demagnetization detector is configured to receive a feedback signal associated with an output voltage of the power conversion system and generate a detection signal based on at least information associated with the feedback signal, the detection signal indicating the demagnetization period. The current-regulation component is configured to receive the drive signal, the detection signal and a current-sensing signal and output a current-regulation signal based on at least information associated with the drive signal, the detection signal, and the current sensing signal, the current-sensing signal representing the primary current in magnitude. In addition, the signal processing component is configured to receive the current-regulation signal and output a processed signal to the driving component in order to generate the drive signal.

According to another embodiment, a system controller for regulating an output current of a power conversion system includes a driving component, a current-regulation component, an amplifier and a comparator. The driving component is configured to output a drive signal to a switch in order to affect a primary current flowing through a primary winding of the power conversion system, the drive signal being associated with at least a switching period, the switching period including an on-time period and a demagnetization period. The current-regulation controller is configured to receive the drive signal, a detection signal and a current-sensing signal and output a first signal based on at least information associated with the drive signal, the detection signal, and the current sensing signal, the detection signal indicating the demagnetization period, the current-sensing signal representing the primary current in magnitude. The amplifier is configured to receive the first signal and a reference signal and generate, with at least a capacitor, an amplified signal based on at least information associated with the first signal and the reference signal. The comparator configured to receive the amplified signal and a ramp signal and generate a comparison signal based on at least information associated with the amplified signal and the ramp signal, the ramp signal being associated with at least a ramping period. The driving component is further configured to receive the comparison signal and a second signal associated with at least a signal period, process information associated with the comparison signal and the second signal, and generate the drive signal based on at least information associated with the comparison signal and the second signal.

According to yet another embodiment, a system controller for detecting a demagnetization period associated with a power conversion system includes a differentiation component, a comparator, and a detection component. The differentiation component is configured to receive a feedback signal associated with an output signal of the power conversion system and output a processed signal based on at least information associated with the feedback signal. The comparator is configured to receive at least the processed signal and generate a comparison signal based on at least information associated with the processed signal. The detection component is configured to receive at least the comparison signal and output a detection signal based on at least information associated with the comparison signal. The differentiation component includes a capacitor, a resistor and a current source. The capacitor includes a first capacitor terminal and a second capacitor terminal, the first capacitor terminal being configured to receive the feedback signal. The resistor includes a first resistor terminal and a second resistor terminal, the first resistor terminal being configured to output the processed signal, the second resistor terminal being biased to a predetermined voltage. The current source includes a first component terminal and a second component terminal, the first component terminal being coupled to the second capacitor terminal and the first resistor terminal.

In one embodiment, a method for regulating an output current of a power conversion system includes outputting a drive signal to a switch in order to affect a primary current flowing through a primary winding of the power conversion system, the drive signal being associated with at least a switching period, the switching period including an on-time period and a demagnetization period, receiving a feedback signal associated with an output voltage of the power conversion system, and processing information associated with the feedback signal. The method further includes generating a detection signal based on at least information associated with the feedback signal, the detection signal indicating the demagnetization period, receiving the drive signal, the detection signal and a current-sensing signal, the current-sensing signal representing the primary current in magnitude, and processing information associated with the drive signal, the detection signal and the current-sensing signal. In addition, the method includes outputting a current-regulation signal based on at least information associated with the drive signal, the detection signal, and the current sensing signal, receiving the current-regulation signal, processing information associated with the current-regulation signal, and outputting a processed signal to the driving component in order to generate the drive signal.

In another embodiment, a method for regulating an output current of a power conversion system includes outputting a drive signal to a switch in order to affect a primary current flowing through a primary winding of the power conversion system, the drive signal being associated with at least a switching period, the switching period including an on-time period and a demagnetization period, receiving the drive signal, a detection signal and a current-sensing signal, the detection signal indicating the demagnetization period, the current-sensing signal representing the primary current in magnitude, and processing information associated with the drive signal, the detection signal and the current-sensing signal. The method further includes outputting a first signal based on at least information associated with the drive signal, the detection signal, and the current sensing signal, receiving the first signal and a reference signal, and processing information associated with the first signal and the reference signal. In addition, the method includes generating, with at least a capacitor, an amplified signal based on at least information associated with the first signal and the reference signal, receiving the amplified signal and a ramp signal, the ramp signal being associated with at least a ramping period, and processing information associated with the amplified signal and the ramp signal. Furthermore, the method includes generating a comparison signal based on at least information associated with the amplified signal and the ramp signal, receiving the comparison signal and a second signal associated with at least a signal period, processing information associated with the comparison signal and the second signal, and generating the drive signal based on at least information associated with the comparison signal and the second signal.

In yet another embodiment, a method for detecting a demagnetization period associated with a power conversion system includes receiving, by at least a capacitor, a feedback signal associated with an output signal of the power conversion system, the capacitor including a first capacitor terminal and a second capacitor terminal, the first capacitor terminal receiving the feedback signal, the second capacitor terminal being coupled to a first component terminal of a current source, the current source further including a second component terminal, providing a current, by the current source, to at least a resistor including a first resistor terminal and a second resistor terminal, the first resistor terminal being coupled to the first component terminal, the second resistor terminal being biased to a predetermined voltage, and processing information associated with the feedback signal and the current. The method further includes outputting, by at least the first resistor terminal, a processed signal based on at least information associated with the feedback signal and the current, receiving at least the processed signal and a reference signal, and processing information associated with the processed signal and the reference signal. In addition, the method includes generating a comparison signal based on at least information associated with the processed signal and the reference signal, receiving at least the comparison signal, and generating a detection signal based on at least information associated with the comparison signal.

Many benefits are achieved by way of the present invention over conventional techniques. For example, some embodiments of the present invention sample a current sensing signal at a middle point of an on-time period to reduce the sampling errors associated with sampling twice the current sensing signal during the on-time period. In another example, certain embodiments of the present invention sample the current sensing signal at the middle point of an on-time period to reduce the sampling errors associated with sampling the current sensing signal shortly after the beginning of the on-time period. In yet another example, some embodiments of the present invention accurately detect the end of a demagnetization process without including a time period related to resonance into the demagnetization period to reduce measurement errors thereof.

Depending upon embodiment, one or more benefits may be achieved. These benefits and various additional objects, features and advantages of the present invention can be fully appreciated with reference to the detailed description and accompanying drawings that follow.

4. BRIEF DESCRIPTION OF THE DRAWINGS

FIG. 1 is a simplified diagram showing a conventional flyback power conversion system.

FIG. 2 is a simplified conventional timing diagram for the flyback power conversion system as shown in FIG. 1 that operates in the continuous conduction mode (CCM).

FIG. 3(A) is a simplified diagram showing a power conversion system configured to operate in the continuous conduction mode (CCM) and/or in the discontinuous conduction mode (DCM) according to an embodiment of the present invention.

FIG. 3(B) is a simplified diagram showing a power conversion system configured to operate in the critical conduction mode (CRM) according to another embodiment of the present invention.

FIG. 4 is a simplified diagram showing certain components of the current-control component as part of the controller as shown in FIG. 3(A) or as part of the controller as shown in FIG. 3(B) according to certain embodiments of the present invention.

FIG. 5(A) is a simplified timing diagram for the controller as part of the power conversion system as shown in FIG. 3(A) operating in the CCM mode according to one embodiment of the present invention.

FIG. 5(B) is a simplified timing diagram for the controller as part of the power conversion system as shown in FIG. 3(A) operating in the DCM mode according to another embodiment of the present invention.

FIG. 5(C) is a simplified timing diagram for the controller as part of the power conversion system as shown in FIG. 3(B) operating in the CRM mode according to an embodiment of the present invention.

FIG. 6 is a simplified diagram showing certain components of the sampling component as part of the current-control component of the controller as shown in FIG. 3(A) or the controller as shown in FIG. 3(B) according to certain embodiments of the present invention.

FIG. 7 is a simplified timing diagram for the sampling component as part of the current-control component of the controller as shown in FIG. 3(A) or the controller as shown in FIG. 3(B) according to some embodiments of the present invention.

FIG. 8(A) is a simplified diagram showing certain components of the demagnetization detector as part of the controller as shown in FIG. 3(A) or the controller as shown in FIG. 3(B) according to certain embodiments of the present invention.

FIG. 8(B) is a simplified diagram showing certain components of the demagnetization detector as part of the controller as shown in FIG. 3(A) or the controller as shown in FIG. 3(B) according to some embodiments of the present invention.

FIG. 9 is a simplified timing diagram for the demagnetization detector as part of the controller as shown in FIG. 3(A) operating in the DCM mode according to certain embodiments of the present invention.

FIG. 10 is a simplified timing diagram for the demagnetization detector as part of the controller as shown in FIG. 3(A) operating in the CCM mode according to some embodiments of the present invention.

5. DETAILED DESCRIPTION OF THE INVENTION

The present invention is directed to integrated circuits. More particularly, the invention provides systems and methods for current control. Merely by way of example, the invention has been applied to constant current control of power conversion systems. But it would be recognized that the invention has a much broader range of applicability.

FIG. 3(A) is a simplified diagram showing a power conversion system configured to operate in the continuous conduction mode (CCM) and/or in the discontinuous conduction mode (DCM) according to an embodiment of the present invention. This diagram is merely an example, which should not unduly limit the scope of the claims. One of ordinary skill in the art would recognize many variations, alternatives, and modifications. The power conversion system 300 includes a controller 302, a primary winding 304, a secondary winding 306, a current sensing resistor 308, an auxiliary winding 310, three capacitors 312, 314 and 328, two resistors 318 and 320, two rectifying diodes 322 and 324, and a power switch 316. The controller 302 includes a current-control component 326, an amplifier 330, a comparator 332, an oscillator 334, a flip-flop component 336, a demagnetization detector 338, an AND gate 340, and a driving component 342. Further, the controller 302 includes terminals 344, 346, 348, and 350. For example, the power switch 316 is a bipolar transistor. In another example, the power switch 316 is a field effect transistor (e.g., a MOSFET).

According to one embodiment, when the power switch 316 is closed (e.g., on), the energy is stored in the transformer including the primary winding 304 and the secondary winding 306. For example, when the power switch 316 is open (e.g., off), the stored energy is released to the output terminal. In another example, the auxiliary winding 310 and associated components (e.g., the resistors 318 and 320) generates a feedback signal 360 which is related to an output voltage 359 on the secondary side. In yet another example, the demagnetization detector 338 receives the feedback signal 360 and outputs a detection signal 356 which indicates when a demagnetization process associated with the transformer including the primary winding 304 and the secondary winding 306 starts and when the demagnetization process ends. In yet another example, the current-control component 326 receives the detection signal 356, a current-sensing signal 354 generated by the resistor 308 and a drive signal 358 generated by the driving component 342, and outputs a signal 362 (e.g., V_(C)) to the amplifier 330. In yet another example, the amplifier 330 and the capacitor 328 are included in an integrator which integrates a difference between the signal 362 and a reference signal 367 and outputs a signal 364. In yet another example, the demagnetization detector 338 also receives the drive signal 358.

According to another embodiment, the comparator 332 receives the signal 364 and a signal 366 generated by the oscillator 334, and outputs a comparison signal 368. For example, if the signal 366 (e.g., a ramp signal) is larger than the signal 364 in magnitude, the comparator 332 generates the comparison signal 368 at a logic low level (e.g., 0). In another example, if the signal 366 (e.g., a ramp signal) is smaller than the signal 364 in magnitude, the comparator 332 generates the comparison signal 368 at a logic high level (e.g., 1). In yet another example, the flip-flop component 336 receives, at a “CLK” terminal, a clock signal 372 generated by the oscillator 334, and receives, at an “R” terminal (e.g., a reset terminal), the comparison signal 368. If the comparison signal 368 is at the logic low level, the flip-flop component 336 outputs a signal 370 at a logic low level (e.g., 0) to the driving component 342 through the AND gate 340 in order to turn off (e.g., open) the switch 316 in some embodiments. For example, if a rising edge appears in the clock signal 372, the flip-flop component 336 generates the signal 370 at a logic high level (e.g., 1) in order to turn on (e.g., close) the switch 316. For example, the signal 366 is a ramp signal associated with a ramping period. In another example, the signal 366 increases from a first magnitude to a second magnitude during a first period in a ramping period, and decreases from the second magnitude to the first magnitude during a second period in the same ramping period. In yet another example, the clock signal 372 has a same frequency as the signal 366. In yet another example, the clock signal 372 has a same phase as the signal 366. In yet another example, if the clock signal 372 is at a logic high level, the signal 366 decreases in magnitude, and if the clock signal 372 is at a logic low level, the signal 366 increases in magnitude.

FIG. 3(B) is a simplified diagram showing a power conversion system configured to operate in the critical conduction mode (CRM) (e.g., the quasi-resonant (QR) mode) according to another embodiment of the present invention. This diagram is merely an example, which should not unduly limit the scope of the claims. One of ordinary skill in the art would recognize many variations, alternatives, and modifications. The power conversion system 400 includes a controller 402, a primary winding 404, a secondary winding 406, a current sensing resistor 408, an auxiliary winding 410, three capacitors 412, 414 and 428, two resistors 418 and 420, two rectifying diodes 422 and 424, and a power switch 416. The controller 402 includes the current-control component 326, an amplifier 430, a comparator 432, a QR detector 434, a signal generator 435, a flip-flop component 436, the demagnetization detector 338, an AND gate 440, and a driving component 442. Further, the controller 402 includes terminals 444, 446, 448, and 450. For example, the power switch 416 is a bipolar transistor. In another example, the power switch 416 is a field effect transistor (e.g., a MOSFET).

According to one embodiment, when the power switch 416 is closed (e.g., on), the energy is stored in the transformer including the primary winding 404 and the secondary winding 406. For example, when the power switch 416 is open (e.g., off), the stored energy is released to the output terminal. In another example, the auxiliary winding 410 and associated components (e.g., the resistors 418 and 420) generates a feedback signal 460 which is related to an output voltage 459 on the secondary side. In yet another example, the demagnetization detector 338 detects the feedback signal 460 and outputs a detection signal 456 which indicates when a demagnetization process associated with the transformer including the primary winding 404 and the secondary winding 406 starts and when the demagnetization process ends. In yet another example, the current-control component 326 receives the detection signal 456, a current-sensing signal 454 generated by the resistor 408 and a drive signal 458 generated by the driving component 442, and outputs a signal 462 (e.g., V_(C)) to the amplifier 430. In yet another example, the amplifier 430 and the capacitor 428 are included in an integrator which integrates a difference between the signal 462 and a reference signal 467 and outputs a signal 464.

According to another embodiment, the comparator 432 receives the signal 464 and a signal 466 generated by the signal generator 435, and outputs a comparison signal 468. For example, if the signal 466 (e.g., a ramp signal) is larger than the signal 464 in magnitude, the comparator 432 generates the comparison signal 468 at a logic low level (e.g., 0). In another example, if the signal 466 (e.g., a ramp signal) is smaller than the signal 464 in magnitude, the comparator 432 generates the comparison signal 468 at a logic high level (e.g., 1). In yet another example, the QR detector 434 detects whether the system 400 operates in the CRM mode (e.g., the QR mode). In yet another example, the QR detector 434 receives the feedback signal 460 and outputs a signal 473 to the flip-flop component 436 and the signal generator 435. In yet another example, the flip-flop component 436 receives, at a “CLK” terminal, the comparison signal 468 and receives, at an “R” terminal (e.g., a reset terminal), the signal 473.

When the comparison signal 468 is at the logic low level, the flip-flop component 436 outputs a signal 470 at a logic low level (e.g., 0) to the driving component 442 through the AND gate 440 in order to turn off (e.g., open) the switch 416 in some embodiments. For example, if the demagnetization process is determined to be completed, the QR detector 434 generates a rising edge in the signal 473. In response, the flip-flop component 436 generates the signal 472 at the logic high level (e.g., 1) in order to turn on (e.g., close) the switch 416 according to certain embodiments. For example, the signal 466 is a ramp signal associated with a ramping period. In yet another example, the signal 466 increases in magnitude during at least a part of the ramping period. In yet another example, the signal 473 is associated with a signal period, and includes a pulse within the signal period. In yet another example, during a cycle, the signal 466 increases in magnitude when a rising edge of a pulse appears in the signal 473. In yet another example, the signal 466 decreases to a low magnitude abruptly at the end of the cycle. In yet another example, the ramping period of the signal 466 varies from cycle to cycle.

As discussed above and further emphasized here, FIG. 3(A) and FIG. 3(B) are merely examples, which should not unduly limit the scope of the claims. One of ordinary skill in the art would recognize many variations, alternatives, and modifications. For example, the system 300 as shown in FIG. 3(A) and the system 400 as shown in FIG. 3(B) can be combined into one system with overlapping components so that the system can operate in all of the CCM mode, the DCM mode and the CRM mode (e.g., the QR mode).

Referring back to FIG. 3(A), in some embodiments, the bandwidth of the amplifier 330 is far smaller than the switching frequency of the power conversion system 300, for example, if

$\frac{g_{m}}{2\pi \times C_{cmp}} < \frac{1}{10T_{s}}$

where g_(m) is the transconductance associated with the amplifier 330, C_(cmp) represents the capacitance of the capacitor 328, and T_(s) represents the switching period of the system 300. As an example, if the negative feedback loop is established, the difference between the signal 362 and the reference signal 367 is integrated by the integrator including the amplifier 330 and the capacitor 328. In another example, the signal 364 affects the duty cycle of the drive signal 358 and thus affects the power delivered to the output. If an average value of the signal 362 is set approximately equal to the reference signal 367 in magnitude as follows:

$\begin{matrix} {{V_{ref} = {{\frac{1}{T} \times {\int_{0}^{T}{V_{C}\ {t}}}} = {\frac{1}{2 \times T} \times {\int_{0}^{T}{\left( {V_{{cs}\; 1} + V_{{cs}\; 0}} \right) \times \frac{T_{dem}}{T_{s}}\ {t}}}}}}\mspace{85mu} {or}} & \left( {{Equation}\mspace{14mu} 8} \right) \\ {{V_{ref} = {{\frac{1}{T} \times {\int_{0}^{T}{V_{C}\ {t}}}} = {\frac{1}{T} \times {\int_{0}^{T}{\left( V_{{cs}\; \_ \frac{1}{2}T_{on}} \right) \times \frac{T_{dem}}{T_{s}}\ {t}}}}}}\mspace{79mu} {or}} & \left( {{Equation}\mspace{14mu} 9} \right) \\ {V_{ref} = {{\frac{1}{K} \times {\sum\limits_{1}^{K->\infty}{V_{C}(n)}}} = {\frac{1}{K} \times {\sum\limits_{1}^{K->\infty}{{V_{{cs}\; \_ \frac{1}{2}T_{on}}(n)} \times \frac{T_{dem}(n)}{T_{s}(n)}}}}}} & \left( {{Equation}\mspace{14mu} 10} \right) \end{matrix}$

where V_(ref) represents the reference signal 367, V_(C) represents the signal 362, and

$V_{{cs}\; \_ \frac{1}{2}T_{on}}$

represents the current sensing signal 354 at the middle point of an on-time period.

For example, the following equation results from combining Equation 8 (or Equation 9) with Equation 6, or combining Equation 10 with Equation 7.

$\begin{matrix} {I_{out} = {N \times \frac{V_{ref}}{R_{S}}}} & \left( {{Equation}\mspace{14mu} 11} \right) \end{matrix}$

Thus, if the reference signal 367 is kept constant in magnitude, the output current 357 is kept approximately constant according to certain embodiments. In some embodiments, the above-discussed current control scheme can be applied to the power conversion system 400 as shown in FIG. 3(B).

FIG. 4 is a simplified diagram showing certain components of the current-control component 326 as part of the controller 302 or as part of the controller 402 according to certain embodiments of the present invention. This diagram is merely an example, which should not unduly limit the scope of the claims. One of ordinary skill in the art would recognize many variations, alternatives, and modifications. The current-control component 326 includes a sampling component 502, three switches 504, 508 and 510, a capacitor 506, and a NOT gate 512.

According to one embodiment, the sampling component 502 receives the drive signal 358 (or the drive signal 458) and generates a sampling signal 518 in order to sample the current sensing signal 354 (or the current sensing signal 454). For example, the current sensing signal 354 (or the current sensing signal 454) is sampled at a middle point of an on-time period. In another example, in response to the sampling signal 518, the switch 504 is closed (e.g., on) or open (e.g., off). In yet another example, when the switch 504 is closed (e.g., on), the capacitor 506 is charged in response to the current sensing signal 354 (or the current sensing signal 454). In yet another example, when the switch 504 is open (e.g., off), the capacitor 506 (e.g., with other related components) provides a voltage signal 524 (e.g., V_(S)) through the switch 508 if the switch 508 is closed (e.g., on) in response to the signal 356 (or the signal 456) during the demagnetization process. That is, the signal 362 (or the signal 462) is approximately equal in magnitude to the voltage signal 524 (e.g., V_(S)) during the demagnetization process. In yet another example, if the demagnetization process has ended, the switch 510 is closed (e.g., on) in response to a signal 516 which is complementary to the signal 356 (or the signal 456), and the signal 362 (or the signal 462) is approximately equal to a ground voltage 520 (e.g., 0).

FIG. 5(A) is a simplified timing diagram for the controller 302 as part of the power conversion system 300 operating in the CCM mode according to one embodiment of the present invention. This diagram is merely an example, which should not unduly limit the scope of the claims. One of ordinary skill in the art would recognize many variations, alternatives, and modifications. The waveform 602 represents the drive signal 358 as a function of time, the waveform 604 represents the current sensing signal 354 as a function of time, and the waveform 606 represents the sampling signal 518 as a function of time. The waveform 608 represents the signal 356 as a function of time, the waveform 610 represents the signal 516 as a function of time, and the waveform 612 represents the signal 362 (e.g., V_(C)) as a function of time. For example, a switching period, T_(s), starts at time t₃ and ends at time t₆, an on-time period, T_(on), starts at the time t₃ and ends at time t₅, and an off-time period, T_(off), starts at the time t₅ and ends at the time t₆. In another example, t₃≦t₄≦t₅≦t₆.

According to one embodiment, during the on-time period, the drive signal 358 keeps at a logic high level (e.g., as shown by the waveform 602), and the current sensing signal 354 increases (e.g., linearly or non-linearly) in magnitude (e.g., as shown by the waveform 604). For example, the signal 356 is kept at a logic low level which indicates that the system 300 is not in the demagnetization process and the switch 508 keeps open (e.g., off). In another example, before the middle point of the on-time period (e.g., t₄), the sampling signal 518 is kept at the logic high level (e.g., as shown by the waveform 604), and in response the switch 504 is closed (e.g., on). In yet another example, the capacitor 506 is charged and the voltage on the capacitor 506 increases in magnitude. In yet another example, at the middle point of the on-time period (e.g., at t₄), the sampling signal 518 changes from the logic high level to the logic low level (e.g., a falling edge shown in the waveform 606), and the switch 504 is open (e.g., off). The voltage 524 at the capacitor 506 (e.g., V_(S)) is approximately equal to a magnitude 614 (e.g., the magnitude of the current sensing signal 354 at t₄) in some embodiments. For example, the magnitude 614 is approximately equal to an average of a magnitude 618 (e.g., V_(cs) _(—) ₀) of the current sensing signal 354 at the beginning of the on-time period (e.g., at t₃) and a magnitude 620 (e.g., V_(cs) _(—) ₁) of the current sensing signal 354 at the end of the on-time period (e.g., at t₅). In another example, during the on-time period, the signal 516 keeps at the logic high level (e.g., as shown by the waveform 610) and the switch 510 is closed (e.g., on). In yet another example, the signal 362 (e.g., V_(C)) is approximately equal to the ground voltage 520 (e.g., as shown by the waveform 612).

According to another embodiment, at the beginning of the off-time period (e.g., t₅), the drive signal 358 changes from the logic high level to the logic low level (e.g., as shown by the waveform 602), and the current sensing signal 354 decreases to a magnitude 616 (e.g., as shown by the waveform 604). For example, the sampling signal 518 keeps at the logic low level and the switch 504 keeps open (e.g., off). In another example, the signal 356 changes from the logic low level to the logic high level which indicates that the demagnetization process begins and the switch 508 is closed (e.g., on). In yet another example, the signal 362 (e.g., V_(C)) changes from the ground voltage to be approximately equal to the voltage 524 at the capacitor 506 (e.g., V_(S)) as shown by the waveform 612. In yet another example, at the end of the off-time period (e.g., at t₆), the signal 356 changes from the logic high level to the logic low level which indicates that the demagnetization process ends and thereafter a new switching cycle begins.

FIG. 5(B) is a simplified timing diagram for the controller 302 as part of the power conversion system 300 operating in the DCM mode according to another embodiment of the present invention. This diagram is merely an example, which should not unduly limit the scope of the claims. One of ordinary skill in the art would recognize many variations, alternatives, and modifications. The waveform 632 represents the drive signal 358 as a function of time, the waveform 634 represents the current sensing signal 354 as a function of time, and the waveform 636 represents the sampling signal 518 as a function of time. The waveform 638 represents the signal 356 as a function of time, the waveform 640 represents the signal 516 as a function of time, and the waveform 642 represents the signal 362 (e.g., V_(C)) as a function of time. For example, a switching period, T_(s), starts at time t₇ and ends at time t₁₁, an on-time period, T_(on), starts at the time t₇ and ends at time t₉, a demagnetization time period, T_(dem), starts at the time t₉ and ends at time t₁₀, and an off-time period, T_(off), starts at the time t₉ and ends at the time t₁₁. In another example, t₇≦t₈≦t₉≦t₁₀≦t₁₁.

According to one embodiment, during the on-time period, the drive signal 358 keeps at a logic high level (e.g., as shown by the waveform 632), and the current sensing signal 354 increases (e.g., linearly or non-linearly) in magnitude (e.g., as shown by the waveform 634). For example, the signal 356 is kept at a logic low level which indicates that the system 300 is not in the demagnetization process and the switch 508 keeps open (e.g., off). In another example, before the middle point of the on-time period (e.g., t₈), the sampling signal 518 is kept at the logic high level (e.g., as shown by the waveform 634), and in response the switch 504 is closed (e.g., on). In yet another example, the capacitor 506 is charged and the voltage on the capacitor 506 increases in magnitude. In yet another example, at the middle point of the on-time period (e.g., at t₈), the sampling signal 518 changes from the logic high level to the logic low level (e.g., a falling edge shown in the waveform 636), and the switch 504 is open (e.g., off). The voltage 524 at the capacitor 506 (e.g., V_(S)) is approximately equal to a magnitude 644 (e.g., the magnitude of the current sensing signal 354 at t₈) in some embodiments. For example, the magnitude 644 is approximately equal to an average of a magnitude 648 (e.g., V_(cs) _(—) ₀) of the current sensing signal 354 at the beginning of the on-time period (e.g., at t₇) and a magnitude 650 (e.g., V_(cs) _(—) ₁) of the current sensing signal 354 at the end of the on-time period (e.g., at t₉). In another example, during the on-time period, the signal 516 keeps at the logic high level (e.g., as shown by the waveform 640) and the switch 510 is closed (e.g., on). In yet another example, the signal 362 (e.g., V_(C)) is approximately equal to the ground voltage 520 (e.g., as shown by the waveform 642).

According to another embodiment, at the beginning of the off-time period (e.g., t₉), the drive signal 358 changes from the logic high level to the logic low level (e.g., as shown by the waveform 632), and the current sensing signal 354 decreases to a magnitude 616 (e.g., as shown by the waveform 634). For example, the sampling signal 518 keeps at the logic low level and the switch 504 keeps open (e.g., off). In another example, the signal 356 changes from the logic low level to the logic high level which indicates that the demagnetization process begins and the switch 508 is closed (e.g., on). In yet another example, the signal 362 (e.g., V_(C)) changes from the ground voltage to be approximately equal to the voltage 524 at the capacitor 506 (e.g., V_(S)) as shown by the waveform 642. In yet another example, the off-time period ends (e.g., at t₁₁) a time period after the demagnetization process has completed and thereafter a new switching cycle begins.

FIG. 5(C) is a simplified timing diagram for the controller 402 as part of the power conversion system 400 operating in the CRM mode (e.g., the QR mode) according to an embodiment of the present invention. This diagram is merely an example, which should not unduly limit the scope of the claims. One of ordinary skill in the art would recognize many variations, alternatives, and modifications. The waveform 662 represents the drive signal 458 as a function of time, the waveform 664 represents the current sensing signal 454 as a function of time, and the waveform 666 represents the sampling signal 518 as a function of time. The waveform 668 represents the signal 456 as a function of time, the waveform 670 represents the signal 516 as a function of time, and the waveform 672 represents the signal 462 (e.g., V_(C)) as a function of time. In some embodiments, the scheme of using the sampling signal 518 to sample the current sensing signal 454 at a middle point of an on-time period in the QR mode as shown in FIG. 5(C) is similar to the schemes demonstrated in FIG. 5(A) and FIG. 5(B).

Referring to FIG. 5(A), FIG. 5(B) and FIG. 5(C), the signal 362 (or the signal 462) can be determined as follows, for example.

$\begin{matrix} {V_{C} = {{\frac{1}{T_{s}} \times \left( {{V_{s}T_{dem}} + {0 \times T_{{dem}\; \_ \; b}}} \right)} = {{V_{{cs}\; \_ \frac{1}{2}T_{on}} \times \frac{T_{dem}}{T_{s}}} = {\frac{V_{{cs}\; 1} + V_{{cs}\; 0}}{2} \times \frac{T_{dem}}{T_{s}}}}}} & \left( {{Equation}\mspace{14mu} 12} \right) \end{matrix}$

where V_(C) represents the signal 362 (or the signal 462), V_(s) represents the voltage signal 524, T_(s) represents the duration of a switching period, T_(dem) represents the duration of the demagnetization period, and T_(dem) _(—) _(b) represents the duration of the switching period excluding the demagnetization period. In addition,

$V_{{cs}\; \_ \frac{1}{2}T_{on}}$

represents a magnitude of the current sensing signal 354 (or the current sensing signal 454) at the middle point of an on-time period, V_(cs0) represents a magnitude of the current sensing signal 354 (or the current sensing signal 454) at the beginning of the on-time period, and V_(cs1) represents a magnitude of the current sensing signal 354 (or the current sensing signal 454) at the end of the on-time period.

FIG. 6 is a simplified diagram showing certain components of the sampling component 502 as part of the current-control component 326 of the controller 302 or the controller 402 according to certain embodiments of the present invention. This diagram is merely an example, which should not unduly limit the scope of the claims. One of ordinary skill in the art would recognize many variations, alternatives, and modifications. The sampling component 502 includes two one-shot signal generators 702 and 704, four switches 706, 710, 714 and 718, two capacitors 712 and 716, a comparator 720, a NOT gate 722, two AND gates 724 and 726, and a current source 708.

According to one embodiment, the one-shot signal generator 702 receives the drive signal 358 (or the drive signal 458) and generates a signal 730 (e.g., clr1) which affects the status of the switch 714. For example, the one-shot signal generator 704 receives the signal 730 (e.g., clr1) and outputs a signal 732 which affects the status of the switch 710. In another example, the drive signal 358 (or the drive signal 458) affects the status of the switch 706. In yet another example, the capacitor 712 generates a voltage signal 738 when the switch 706 is closed (e.g., on). In yet another example, when being charged, the capacitor 714 generates a voltage signal 736. In yet another example, the comparator 720 receives the signal 736 and the signal 738 and outputs a comparison signal 740 to the AND gate 724 and the NOT gate 722 in order to generate the sampling signal 518. In yet another example, the AND gate 726 outputs a signal 734 to affect the status of the switch 718.

FIG. 7 is a simplified timing diagram for the sampling component 502 as part of the current-control component 326 of the controller 302 or the controller 402 according to some embodiments of the present invention. This diagram is merely an example, which should not unduly limit the scope of the claims. One of ordinary skill in the art would recognize many variations, alternatives, and modifications. The waveform 802 represents the drive signal 358 (or the drive signal 458) as a function of time, the waveform 804 represents the signal 730 as a function of time, and the waveform 806 represents the signal 732 as a function of time. The waveform 808 represents the signal 738 as a function of time, the waveform 810 represents the signal 736 as a function of time, the waveform 812 represents the sampling signal 518 as a function of time, and the waveform 814 represents the signal 734 as a function of time.

According to one embodiment, during a time period between time t₂₀ and time t₂₁, the drive signal 358 (or the drive signal 458) keeps at a logic high level (e.g., as shown by the waveform 802). For example, the signal 730 (e.g., clr1) and the signal 732 (e.g., clr2) keep at a logic low level (e.g., as shown by the waveform 804 and the waveform 806, respectively), and in response the switch 714 and the switch 710 are open (e.g., off) respectively. In another example, the switch 706 is closed (e.g., on) in response to the drive signal 358 (or the drive signal 458). In yet another example, the capacitor 712 is charged and the voltage signal 738 (e.g., V_(C1)) increases in magnitude (e.g., as shown by the waveform 808).

According to another embodiment, at the time t₂₁, the drive signal 358 (or the drive signal 458) changes from the logic high level to the logic low level (e.g., a falling edge as shown by the waveform 802) and the switch 706 is open (e.g., off). For example, the one-shot signal generator 702 generates a pulse (e.g., with a pulse width between t₂₁ and t₂₂) in the signal 730 (e.g., clr1) as shown by the waveform 804. In another example, in response, the switch 714 is closed (e.g., on) and the capacitor 712 begins to discharge. In yet another example, the signal 738 (e.g., V_(C1)) decreases from a magnitude 816 to a magnitude 818, and the signal 736 (e.g., V_(C2)) increases to a magnitude 820. In yet another example, the magnitude 818 is equal to the magnitude 820. In yet another example, if the capacitance of the capacitor 712 and the capacitance of the capacitor 716 are equal, then the magnitude 818 and the magnitude 820 are each equal to one half of the magnitude 816.

According to yet another embodiment, at the time t₂₂, the signal 730 changes to the logic low level (e.g., a falling edge as shown by the waveform 804). For example, the switch 714 is open (e.g., off). In another example, the one-shot signal generator 704 generates a pulse (e.g., with a pulse width between t₂₂ and t₂₃) in the signal 732 (e.g., clr2) as shown by the waveform 806. In another example, in response, the switch 710 is closed (e.g., on) and the capacitor 712 is discharged. In yet another example, the signal 738 decreases to a magnitude 822 (e.g., 0) as shown by the waveform 808), and the signal 736 keeps at the magnitude 820 (e.g., as shown by the waveform 810).

In one embodiment, at the beginning of a next switching cycle (e.g., at time t₂₄), the drive signal 358 (or the drive signal 458) changes from the logic low level to the logic high level (e.g., as shown by the waveform 802). For example, in response, the switch 706 is closed (e.g., on). In another example, the capacitor 712 is charged again and the voltage signal 738 (e.g., V_(C1)) increases in magnitude (e.g., as shown by the waveform 808). In yet another example, if the signal 738 is smaller in magnitude than the signal 736, the comparator 720 generates the comparison signal 740 at a logic high level (e.g., 1). In yet another example, if the signal 738 becomes larger in magnitude than the signal 736 (e.g., at t₂₅, the middle point of the on-time period), the comparator 720 changes the comparison signal 740 to a logic low level (e.g., 0). In yet another example, the AND gate 724 receives the comparison signal 740 and the drive signal 358 (or the drive signal 458) and outputs the sampling signal 518. That is, the sampling signal 518 is equal to a logic sum of the comparison signal 740 and the drive signal 358 (or the drive signal 458). In yet another example, when the comparison signal 740 is changed to the logic low level, the AND gate 726 changes the signal 734 in order to close (e.g., turn on) the switch 718, and in response the capacitor 716 is discharged. In yet another example, the signal 736 decreases to a low magnitude 824 (e.g., at t₂₅, the middle point of the on-time period) as shown by the waveform 810.

FIG. 8(A) is a simplified diagram showing certain components of the demagnetization detector 338 as part of the controller 302 or as part of the controller 402 according to certain embodiments of the present invention. This diagram is merely an example, which should not unduly limit the scope of the claims. One of ordinary skill in the art would recognize many variations, alternatives, and modifications. The demagnetization detector 338 includes a capacitor 902, two resistors 904 and 906, a comparator 908, an offset component 910, two NOT gates 912 and 918, two flip-flop components 914 and 916, and an AND gate 920.

According to one embodiment, the feedback signal 360 (or the feedback signal 460) is received at the capacitor 902. For example, a knee point of the feedback signal 360 (or the feedback signal 460) that indicates the end of the demagnetization process is detected using a differential circuit including the capacitor 902 and the resistors 904 and 906. In another example, a signal 922 is generated to be equal to a differentiated signal related to the slope of the feedback signal 360 (or the feedback signal 460) plus a direct-current (DC) offset V_(m). In yet another example, the DC offset V_(m) is determined based on the following equation.

$\begin{matrix} {V_{m} = {{AVDD} \times \frac{R_{4}}{R_{3} + R_{4}}}} & \left( {{Equation}\mspace{14mu} 13} \right) \end{matrix}$

where V_(m) represents the DC offset, AVDD represents a reference voltage 924, R₃ represents the resistance of the resistor 904, and R₄ represents the resistance of the resistor 906.

According to another embodiment, the comparator 908 receives the signal 922 and a threshold signal 926 (e.g., 0.1 V) generated by the offset component 910 and outputs a comparison signal 928 to the flip-flop components 914 and 916. For example, the drive signal 358 (or the drive signal 458) is processed by the NOT gate 912 in order to affect the flip-flop components 914 and 916. In another example, during the demagnetization process, the signal 922 is no less than the threshold signal 926 in magnitude. In yet another example, if the signal 922 becomes smaller than the threshold signal 926 in magnitude, then the end of the demagnetization process is detected. In yet another example, the comparator 908 changes the comparison signal 928 in order to change the detection signal 356 (or the detection signal 456).

As discussed above and further emphasized here, FIG. 8(A) is merely an example, which should not unduly limit the scope of the claims. One of ordinary skill in the art would recognize many variations, alternatives, and modifications. For example, the resistor 904 is replaced by a current source in some embodiments, as shown in FIG. 8(B).

FIG. 8(B) is a simplified diagram showing certain components of the demagnetization detector 338 as part of the controller 302 or as part of the controller 402 according to some embodiments of the present invention. This diagram is merely an example, which should not unduly limit the scope of the claims. One of ordinary skill in the art would recognize many variations, alternatives, and modifications. As shown in FIG. 8(B), the demagnetization detector 338 includes a current source 934, instead of the resistor 904.

According to one embodiment, the feedback signal 360 (or the feedback signal 460) is received at the capacitor 902. For example, a signal 936 is generated, by the differential circuit including the capacitor 902 and the resistors 904 and 906, to be equal to a differentiated signal related to the slope of the feedback signal 360 (or the feedback signal 460) plus a direct-current (DC) offset V_(m). In another example, the DC offset V_(m) is determined based on the following equation.

V _(m) =I _(dc) ×R ₄  (Equation 14)

where V_(m) represents the DC offset, I_(dc) represents a current 938 flowing through the resistor 906, and R₄ represents the resistance of the resistor 906.

FIG. 9 is a simplified timing diagram for the demagnetization detector 338 as part of the controller 302 operating in the DCM mode according to certain embodiments of the present invention. This diagram is merely an example, which should not unduly limit the scope of the claims. One of ordinary skill in the art would recognize many variations, alternatives, and modifications. The waveform 1002 represents the drive signal 358 as a function of time, the waveform 1004 represents the feedback signal 360 as a function of time, the waveform 1006 represents the signal 922 as a function of time, and the waveform 1008 represents the detection signal 356 as a function of time. For example, a switching period, T_(s), starts at time t₂₆ and ends at time t₃₀, an on-time period starts at the time t₂₆ and ends at time t₂₇, a demagnetization period, T_(dem), starts at the time t₂₇ and ends at time t₂₈. In another example, t₂₆≦t₂₇≦t₂₈≦t₂₉≦t₃₀.

According to one embodiment, during the on-time period, the drive signal 358 keeps at a logic high level (e.g., as shown by the waveform 1002). For example, the flip-flop components 914 and 916 are reset. In another example, when the drive signal 358 changes from the logic high level to a logic low level at the end of the on-time period (e.g., at t₂₇), the feedback signal 360 increases to a magnitude 1010 (e.g., as shown by the waveform 1004), and the signal 922 abruptly increases from a magnitude 1012 to a magnitude 1014 (e.g., a rising edge as shown by the waveform 1006) before gradually decreasing in magnitude. In yet another example, if the signal 922 becomes larger in magnitude than the threshold signal 926, the comparator 908 changes the comparison signal 928. The detection signal 356 changes from the logic low level to the logic high level (e.g., a rising edge as shown in the waveform 1008) which indicates the demagnetization process begins in some embodiments.

According to another embodiment, when the demagnetization process ends (e.g., at t₂₈), a knee point 1018 appears in the feedback signal 360 and the feedback signal 360 decreases in magnitude (e.g., as shown by the waveform 1004). For example, the signal 922 abruptly decreases from a magnitude 1016 to a magnitude 1020 (e.g., a falling edge as shown by the waveform 1006). In another example, in response, the comparator changes the comparison signal 928. The detection signal 356 changes from the logic high level to the logic low level (e.g., a falling edge as shown in the waveform 1008) which indicates the demagnetization process ends in some embodiments.

FIG. 10 is a simplified timing diagram for the demagnetization detector 338 as part of the controller 302 operating in the CCM mode according to some embodiments of the present invention. This diagram is merely an example, which should not unduly limit the scope of the claims. One of ordinary skill in the art would recognize many variations, alternatives, and modifications. The waveform 1102 represents the drive signal 358 as a function of time, the waveform 1104 represents the feedback signal 360 as a function of time, the waveform 1106 represents the signal 922 as a function of time, and the waveform 1108 represents the detection signal 356 as a function of time. For example, a switching period, T_(s), starts at time t₃₂ and ends at time t₃₄, an on-time period starts at the time t₃₂ and ends at time t₃₃, a demagnetization period, T_(dem), starts at the time t₃₃ and ends at time t₃₄. In another example, t₃₂≦t₃₃≦t₃₄.

According to one embodiment, during the on-time period, the drive signal 358 keeps at a logic high level (e.g., as shown by the waveform 1102). For example, the flip-flop components 914 and 916 are reset. In another example, when the drive signal 358 changes from the logic high level to a logic low level at the end of the on-time period (e.g., at t₃₃), the feedback signal 360 increases to a magnitude 1110 (e.g., as shown by the waveform 1104), and the signal 922 abruptly increases from a magnitude 1112 to a magnitude 1114 (e.g., a rising edge as shown by the waveform 1106) before gradually decreasing in magnitude. In yet another example, if the signal 922 becomes larger in magnitude than the threshold signal 926, the comparator 908 changes the comparison signal 928. The detection signal 356 changes from the logic low level to the logic high level (e.g., a rising edge as shown in the waveform 1108) which indicates the demagnetization process begins in some embodiments.

According to another embodiment, when the demagnetization process ends (e.g., at t₃₄), the feedback signal 360 decreases in magnitude (e.g., as shown by the waveform 1104). For example, the signal 922 abruptly decreases from a magnitude 1116 to a magnitude 1120 (e.g., a falling edge as shown by the waveform 1106). In another example, in response, the comparator changes the comparison signal 928. The detection signal 356 changes from the logic high level to the logic low level (e.g., a falling edge as shown in the waveform 1108) which indicates the demagnetization process ends in some embodiments. In yet another example, in the CCM mode, the off-time period is approximately equal in duration to the demagnetization period, and a next switching cycle starts right after the demagnetization period ends.

As discussed above and further emphasized here, FIG. 9 and FIG. 10 are merely examples, which should not unduly limit the scope of the claims. One of ordinary skill in the art would recognize many variations, alternatives, and modifications. For example, the schemes illustrated in FIG. 9 and FIG. 10 using the demagnetization detector 338 as part of the controller 302 operating in the DCM mode and in the CCM mode respectively can also be applied to the demagnetization detector 338 as part of the controller 402 operating in the CRM mode (e.g., the QR mode).

According to another embodiment, a system controller for regulating an output current of a power conversion system includes a driving component, a demagnetization detector, a current-regulation component and a signal processing component. The driving component is configured to output a drive signal to a switch in order to affect a primary current flowing through a primary winding of the power conversion system, the drive signal being associated with at least a switching period, the switching period including an on-time period and a demagnetization period. The demagnetization detector is configured to receive a feedback signal associated with an output voltage of the power conversion system and generate a detection signal based on at least information associated with the feedback signal, the detection signal indicating the demagnetization period. The current-regulation component is configured to receive the drive signal, the detection signal and a current-sensing signal and output a current-regulation signal based on at least information associated with the drive signal, the detection signal, and the current sensing signal, the current-sensing signal representing the primary current in magnitude. In addition, the signal processing component is configured to receive the current-regulation signal and output a processed signal to the driving component in order to generate the drive signal. For example, the system controller is implemented according to at least FIG. 3(A) and/or FIG. 3(B).

According to another embodiment, a system controller for regulating an output current of a power conversion system includes a driving component, a current-regulation component, an amplifier and a comparator. The driving component is configured to output a drive signal to a switch in order to affect a primary current flowing through a primary winding of the power conversion system, the drive signal being associated with at least a switching period, the switching period including an on-time period and a demagnetization period. The current-regulation controller is configured to receive the drive signal, a detection signal and a current-sensing signal and output a first signal based on at least information associated with the drive signal, the detection signal, and the current sensing signal, the detection signal indicating the demagnetization period, the current-sensing signal representing the primary current in magnitude. The amplifier is configured to receive the first signal and a reference signal and generate, with at least a capacitor, an amplified signal based on at least information associated with the first signal and the reference signal. The comparator configured to receive the amplified signal and a ramp signal and generate a comparison signal based on at least information associated with the amplified signal and the ramp signal, the ramp signal being associated with at least a ramping period. The driving component is further configured to receive the comparison signal and a second signal associated with at least a signal period, process information associated with the comparison signal and the second signal, and generate the drive signal based on at least information associated with the comparison signal and the second signal. For example, the system controller is implemented according to at least FIG. 3(A) and/or FIG. 3(B).

According to yet another embodiment, a system controller for detecting a demagnetization period associated with a power conversion system includes a differentiation component, a comparator, and a detection component. The differentiation component is configured to receive a feedback signal associated with an output signal of the power conversion system and output a processed signal based on at least information associated with the feedback signal. The comparator is configured to receive at least the processed signal and generate a comparison signal based on at least information associated with the processed signal. The detection component is configured to receive at least the comparison signal and output a detection signal based on at least information associated with the comparison signal. The differentiation component includes a capacitor, a resistor and a current source. The capacitor includes a first capacitor terminal and a second capacitor terminal, the first capacitor terminal being configured to receive the feedback signal. The resistor includes a first resistor terminal and a second resistor terminal, the first resistor terminal being configured to output the processed signal, the second resistor terminal being biased to a predetermined voltage. The current source includes a first component terminal and a second component terminal, the first component terminal being coupled to the second capacitor terminal and the first resistor terminal. For example, the system controller is implemented according to at least FIG. 3(A), FIG. 3(B), FIG. 8(A), FIG. 8(B), FIG. 9, and/or FIG. 10.

In one embodiment, a method for regulating an output current of a power conversion system includes outputting a drive signal to a switch in order to affect a primary current flowing through a primary winding of the power conversion system, the drive signal being associated with at least a switching period, the switching period including an on-time period and a demagnetization period, receiving a feedback signal associated with an output voltage of the power conversion system, and processing information associated with the feedback signal. The method further includes generating a detection signal based on at least information associated with the feedback signal, the detection signal indicating the demagnetization period, receiving the drive signal, the detection signal and a current-sensing signal, the current-sensing signal representing the primary current in magnitude, and processing information associated with the drive signal, the detection signal and the current-sensing signal. In addition, the method includes outputting a current-regulation signal based on at least information associated with the drive signal, the detection signal, and the current sensing signal, receiving the current-regulation signal, processing information associated with the current-regulation signal, and outputting a processed signal to the driving component in order to generate the drive signal. For example, the method is implemented according to at least FIG. 3(A) and/or FIG. 3(B).

In another embodiment, a method for regulating an output current of a power conversion system includes outputting a drive signal to a switch in order to affect a primary current flowing through a primary winding of the power conversion system, the drive signal being associated with at least a switching period, the switching period including an on-time period and a demagnetization period, receiving the drive signal, a detection signal and a current-sensing signal, the detection signal indicating the demagnetization period, the current-sensing signal representing the primary current in magnitude, and processing information associated with the drive signal, the detection signal and the current-sensing signal. The method further includes outputting a first signal based on at least information associated with the drive signal, the detection signal, and the current sensing signal, receiving the first signal and a reference signal, and processing information associated with the first signal and the reference signal. In addition, the method includes generating, with at least a capacitor, an amplified signal based on at least information associated with the first signal and the reference signal, receiving the amplified signal and a ramp signal, the ramp signal being associated with at least a ramping period, and processing information associated with the amplified signal and the ramp signal. Furthermore, the method includes generating a comparison signal based on at least information associated with the amplified signal and the ramp signal, receiving the comparison signal and a second signal associated with at least a signal period, processing information associated with the comparison signal and the second signal, and generating the drive signal based on at least information associated with the comparison signal and the second signal. For example, the method is implemented according to at least FIG. 3(A) and/or FIG. 3(B).

In yet another embodiment, a method for detecting a demagnetization period associated with a power conversion system includes receiving, by at least a capacitor, a feedback signal associated with an output signal of the power conversion system, the capacitor including a first capacitor terminal and a second capacitor terminal, the first capacitor terminal receiving the feedback signal, the second capacitor terminal being coupled to a first component terminal of a current source, the current source further including a second component terminal, providing a current, by the current source, to at least a resistor including a first resistor terminal and a second resistor terminal, the first resistor terminal being coupled to the first component terminal, the second resistor terminal being biased to a predetermined voltage, and processing information associated with the feedback signal and the current. The method further includes outputting, by at least the first resistor terminal, a processed signal based on at least information associated with the feedback signal and the current, receiving at least the processed signal and a reference signal, and processing information associated with the processed signal and the reference signal. In addition, the method includes generating a comparison signal based on at least information associated with the processed signal and the reference signal, receiving at least the comparison signal, and generating a detection signal based on at least information associated with the comparison signal. For example, the method is implemented according to at least FIG. 3(A), FIG. 3(B), FIG. 8(A), FIG. 8(B), FIG. 9, and/or FIG. 10.

For example, some or all components of various embodiments of the present invention each are, individually and/or in combination with at least another component, implemented using one or more software components, one or more hardware components, and/or one or more combinations of software and hardware components. In another example, some or all components of various embodiments of the present invention each are, individually and/or in combination with at least another component, implemented in one or more circuits, such as one or more analog circuits and/or one or more digital circuits. In yet another example, various embodiments and/or examples of the present invention can be combined.

Although specific embodiments of the present invention have been described, it will be understood by those of skill in the art that there are other embodiments that are equivalent to the described embodiments. Accordingly, it is to be understood that the invention is not to be limited by the specific illustrated embodiments, but only by the scope of the appended claims. 

What is claimed is:
 1. A system controller for regulating an output current of a power conversion system, the system controller comprising: a driving component configured to output a drive signal to a switch in order to affect a primary current flowing through a primary winding of the power conversion system, the drive signal being associated with at least a switching period, the switching period including an on-time period and a demagnetization period; a demagnetization detector configured to receive a feedback signal associated with an output voltage of the power conversion system and generate a detection signal based on at least information associated with the feedback signal, the detection signal indicating the demagnetization period; a current-regulation component configured to receive the drive signal, the detection signal and a current-sensing signal and output a current-regulation signal based on at least information associated with the drive signal, the detection signal, and the current sensing signal, the current-sensing signal representing the primary current in magnitude; and a signal processing component configured to receive the current-regulation signal and output a processed signal to the driving component in order to generate the drive signal.
 2. The system controller of claim 1 wherein the detection signal represents whether the demagnetization period has started and whether the demagnetization period has ended.
 3. The system controller of claim 1 wherein the demagnetization detector is further configured to: if the power conversion system operates in the demagnetization period, generate the detection signal at a first logic level; and if the power conversion system does not operate in the demagnetization period, generate the detection signal at a second logic level, the first logic level being different from the second logic level.
 4. The system controller of claim 1 wherein the driving component includes: a flip-flop component configured to receive the processed signal and a first signal and output a second signal based on at least information associated with the processed signal and the first signal; and a driver configured to receive the second signal and output the drive signal based on at least information associated with the second signal.
 5. The system controller of claim 4 wherein the driver includes an AND gate configured to receive the second signal and the first signal.
 6. The system controller of claim 4 wherein the signal processing component includes: an amplifier configured to receive the current-regulation signal and a reference signal and generate, with at least a capacitor, an amplified signal based on at least information associated with the current-regulation signal and the reference signal; and a comparator configured to receive the amplified signal and generate the processed signal based on at least information associated with the amplified signal.
 7. The system controller of claim 6 wherein the signal processing component further includes: a signal generator configured to output the first signal to the flip-flop component and output a ramp signal to the comparator, the first signal being associated with a clock frequency corresponding to a clock period, the ramp signal being associated with a ramping frequency corresponding to a ramping period.
 8. The system controller of claim 7 wherein: the ramping frequency is equal to the clock frequency; and the ramping period is equal to the clock period in duration.
 9. The system controller of claim 6 wherein the signal processing component further includes: a quasi-resonance detector configured to receive the feedback signal and output the first signal to the flip-flop component; and a signal generator configured to receive the first signal and output a ramp signal to the comparator, the ramp signal being associated with at least a ramping period.
 10. The system controller of claim 9 wherein the quasi-resonance detector is further configured to, if the feedback signal indicates the demagnetization period has ended, change the first signal from a first logic level to a second logic level.
 11. The system controller of claim 10 wherein the signal generator is further configured to, if the first signal changes from the first logic level to the second logic level, increase the ramp signal in magnitude.
 12. The system controller of claim 9 wherein the signal generator is further configured to decrease the ramp signal in magnitude at the end of the ramping period.
 13. The system controller of claim 9 wherein the ramping period varies in duration over time.
 14. The system controller of claim 1 wherein the demagnetization detector includes: a differentiation component configured to receive the feedback signal and output a first signal based on at least information associated with the feedback signal; a comparator configured to receive at least the first signal and generate a comparison signal; and a detection component configured to receive the comparison signal and the drive signal and output the detection signal based on at least information associated with the comparison signal and the drive signal.
 15. The system controller of claim 14 wherein the differentiation component includes: a capacitor including a first capacitor terminal and a second capacitor terminal; a first resistor including a first resistor terminal and a second resistor terminal; and a second resistor including a third resistor terminal and a fourth resistor terminal; wherein: the first resistor terminal is biased to a first voltage; the second resistor terminal is connected to the third resistor terminal; the second capacitor terminal is connected to the second resistor terminal; and the fourth resistor terminal is biased to a second voltage; wherein: the first capacitor terminal is configured to receive the feedback signal; and the second resistor terminal is configured to output the first signal.
 16. The system controller of claim 1 wherein the current-regulation component includes: a sample-and-hold component configured to receive the drive signal, sample the current sensing signal at a middle point of the on-time period, and hold the sampled current sensing signal; and a signal-selection component configured to receive the detection signal and output the current-regulation signal; wherein the signal-selection component is further configured to, if the detection signal indicates that the power conversion system operates in the demagnetization period, output the held sampled current sensing signal; and if the detection signal indicates that the power conversion system does not operate in the demagnetization period, output a ground voltage signal.
 17. The system controller of claim 16 wherein the sample-and-hold component includes: a timing component configured to receive the drive signal and output a sampling signal; a switch configured to be open or closed in response to the sampling signal; and a capacitor coupled to the switch; wherein: the timing component is further configured to output the sampling signal at a logic high level during a first half of the on-time period and output the sampling signal at a logic low level during a second half of the on-time period; the switch is further configured to be open if the sampling signal is at the logic low level and be closed if the sampling signal is at the logic high level; and the capacitor is configured to receive the current sensing signal through the switch if the switch is open.
 18. The system controller of claim 16 wherein the signal-selection component includes: a first switch coupled to the sample-and-hold component and configured to be closed if the detection signal indicates the power conversion system operates in the demagnetization period and be open if the detection signal indicates the power conversion system does not operate in the demagnetization period; and a second switch configured to be open if the detection signal indicates the power conversion system operates in the demagnetization period and be closed if the detection signal indicates the power conversion system does not operate in the demagnetization period; wherein the second switch is further configured to receive the ground voltage signal.
 19. A system controller for regulating an output current of a power conversion system, the system controller comprising: a driving component configured to output a drive signal to a switch in order to affect a primary current flowing through a primary winding of the power conversion system, the drive signal being associated with at least a switching period, the switching period including an on-time period and a demagnetization period; a current-regulation controller configured to receive the drive signal, a detection signal and a current-sensing signal and output a first signal based on at least information associated with the drive signal, the detection signal, and the current sensing signal, the detection signal indicating the demagnetization period, the current-sensing signal representing the primary current in magnitude; an amplifier configured to receive the first signal and a reference signal and generate, with at least a capacitor, an amplified signal based on at least information associated with the first signal and the reference signal; and a comparator configured to receive the amplified signal and a ramp signal and generate a comparison signal based on at least information associated with the amplified signal and the ramp signal, the ramp signal being associated with at least a ramping period; wherein the driving component is further configured to: receive the comparison signal and a second signal associated with at least a signal period; process information associated with the comparison signal and the second signal; and generate the drive signal based on at least information associated with the comparison signal and the second signal.
 20. The system controller of claim 19 wherein: the second signal includes a pulse within the signal period; and the ramp signal increases in magnitude during at least a part of the ramping period.
 21. The system controller of claim 19 wherein: the ramping period includes a first period and a second period; during the first period, the ramp signal increases from a first magnitude to a second magnitude; during the second period, the ramp signal decreases from the second magnitude to the first magnitude.
 22. The system controller of claim 19 wherein: the ramp signal is associated with a ramping frequency corresponding to the ramping period; the second signal is associated with a signal frequency corresponding to the signal period; the ramping frequency is equal to the signal frequency; and the ramping period is equal to the signal period.
 23. The system controller of claim 19 wherein the second signal changes from a first logic level to a second logic level if the demagnetization period has ended.
 24. The system controller of claim 23 wherein, if the second signal changes from the first logic level to the second logic level, the ramp signal increases in magnitude.
 25. The system controller of claim 24 wherein the ramp signal decreases in magnitude at the end of the ramping period.
 26. The system controller of claim 19 wherein the ramping period varies in duration over time.
 27. The system controller of claim 19 wherein the driving component includes: a flip-flop component configured to receive the comparison signal and the second signal and output a third signal based on at least information associated with the comparison signal and the second signal; and a driver configured to receive the third signal and output the drive signal based on at least information associated with the third signal.
 28. The system controller of claim 27, and further comprising: a signal generator configured to output the second signal to the flip-flop component and output the ramp signal to the comparator, the second signal being associated with a signal frequency corresponding to the signal period, the ramp signal being associated with a ramping frequency corresponding to a ramping period.
 29. The system controller of claim 28 wherein: the ramping frequency is equal to the signal frequency; and the ramping period is equal to the signal period in duration.
 30. The system controller of claim 27, and further comprising: a quasi-resonance detector configured to receive the feedback signal and output the second signal to the flip-flop component, the second signal indicating whether the power conversion system operates in a quasi-resonant mode; and a signal generator configured to receive the second signal and output the ramp signal to the comparator.
 31. The system controller of claim 19 wherein the detection signal represents whether the demagnetization period has started and whether the demagnetization period has ended.
 32. The system controller of claim 19 wherein the amplifier includes a transconductance amplifier.
 33. The system controller of claim 19 wherein the current-regulation controller includes: a sample-and-hold component configured to receive the drive signal, sample the current sensing signal at a middle point of the on-time period, and hold the sampled current sensing signal; and a signal-selection component configured to receive the detection signal and output the first signal; wherein the signal-selection component is further configured to, if the detection signal indicates that the power conversion system operates in the demagnetization period, output the held sampled current sensing signal; and if the detection signal indicates that the power conversion system does not operate in the demagnetization period, output a ground voltage signal.
 34. The system controller of claim 33 wherein the sample-and-hold component includes: a timing component configured to receive the drive signal and output a sampling signal; a switch configured to be open or closed in response to the sampling signal; and a capacitor coupled to the switch; wherein: the timing component is further configured to output the sampling signal at a logic high level during a first half of the on-time period and output the sampling signal at a logic low level during a second half of the on-time period; the switch is further configured to be open if the sampling signal is at the logic low level and be closed if the sampling signal is at the logic high level; and the capacitor is configured to receive the current sensing signal through the switch if the switch is open.
 35. The system controller of claim 33 wherein the signal-selection component includes: a first switch coupled to the sample-and-hold component and configured to be closed if the detection signal indicates the power conversion system operates in the demagnetization period and be open if the detection signal indicates the power conversion system does not operate in the demagnetization period; and a second switch configured to be open if the detection signal indicates the power conversion system operates in the demagnetization period and be closed if the detection signal indicates the power conversion system does not operate in the demagnetization period; wherein the second switch is further configured to receive the ground voltage signal.
 36. A system controller for detecting a demagnetization period associated with a power conversion system, the system controller comprising: a differentiation component configured to receive a feedback signal associated with an output signal of the power conversion system and output a processed signal based on at least information associated with the feedback signal; a comparator configured to receive at least the processed signal and generate a comparison signal based on at least information associated with the processed signal; and a detection component configured to receive at least the comparison signal and output a detection signal based on at least information associated with the comparison signal; wherein the differentiation component includes: a capacitor including a first capacitor terminal and a second capacitor terminal, the first capacitor terminal being configured to receive the feedback signal; a resistor including a first resistor terminal and a second resistor terminal, the first resistor terminal being configured to output the processed signal, the second resistor terminal being biased to a predetermined voltage; and a current source including a first component terminal and a second component terminal, the first component terminal being coupled to the second capacitor terminal and the first resistor terminal.
 37. The system controller of claim 36 wherein the detection component includes: a first flip-flop component configured to receive at least the comparison signal and output a first signal based on at least information associated with the comparison signal; a second flip-flop component configured to receive at least the comparison signal and output a second signal based on at least information associated with the comparison signal; and a logic component configured to receive the first signal and the second signal and output the detection signal based on at least information associated with the first signal and the second signal.
 38. The system controller of claim 36, and further comprising a driving component configured to output a drive signal to a switch in order to affect a primary current flowing through a primary winding of the power conversion system, the drive signal being associated with a switching frequency corresponding to a switching period, the switching period including an on-time period and a demagnetization period; wherein the driving component is further configured to output the drive signal to the detection component.
 39. A method for regulating an output current of a power conversion system, the method comprising: outputting a drive signal to a switch in order to affect a primary current flowing through a primary winding of the power conversion system, the drive signal being associated with at least a switching period, the switching period including an on-time period and a demagnetization period; receiving a feedback signal associated with an output voltage of the power conversion system; processing information associated with the feedback signal; generating a detection signal based on at least information associated with the feedback signal, the detection signal indicating the demagnetization period; receiving the drive signal, the detection signal and a current-sensing signal, the current-sensing signal representing the primary current in magnitude; processing information associated with the drive signal, the detection signal and the current-sensing signal; outputting a current-regulation signal based on at least information associated with the drive signal, the detection signal, and the current sensing signal; receiving the current-regulation signal; processing information associated with the current-regulation signal; and outputting a processed signal to the driving component in order to generate the drive signal.
 40. A method for regulating an output current of a power conversion system, the method comprising: outputting a drive signal to a switch in order to affect a primary current flowing through a primary winding of the power conversion system, the drive signal being associated with at least a switching period, the switching period including an on-time period and a demagnetization period; receiving the drive signal, a detection signal and a current-sensing signal, the detection signal indicating the demagnetization period, the current-sensing signal representing the primary current in magnitude; processing information associated with the drive signal, the detection signal and the current-sensing signal; outputting a first signal based on at least information associated with the drive signal, the detection signal, and the current sensing signal; receiving the first signal and a reference signal; processing information associated with the first signal and the reference signal; generating, with at least a capacitor, an amplified signal based on at least information associated with the first signal and the reference signal; receiving the amplified signal and a ramp signal, the ramp signal being associated with at least a ramping period; processing information associated with the amplified signal and the ramp signal; generating a comparison signal based on at least information associated with the amplified signal and the ramp signal; receiving the comparison signal and a second signal associated with at least a signal period; processing information associated with the comparison signal and the second signal; and generating the drive signal based on at least information associated with the comparison signal and the second signal.
 41. A method for detecting a demagnetization period associated with a power conversion system, the method comprising: receiving, by at least a capacitor, a feedback signal associated with an output signal of the power conversion system, the capacitor including a first capacitor terminal and a second capacitor terminal, the first capacitor terminal receiving the feedback signal, the second capacitor terminal being coupled to a first component terminal of a current source, the current source further including a second component terminal; providing a current, by the current source, to at least a resistor including a first resistor terminal and a second resistor terminal, the first resistor terminal being coupled to the first component terminal, the second resistor terminal being biased to a predetermined voltage; processing information associated with the feedback signal and the current; outputting, by at least the first resistor terminal, a processed signal based on at least information associated with the feedback signal and the current; receiving at least the processed signal and a reference signal; processing information associated with the processed signal and the reference signal; generating a comparison signal based on at least information associated with the processed signal and the reference signal; receiving at least the comparison signal; and generating a detection signal based on at least information associated with the comparison signal. 